package com.mall.server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.commons.utils.PageUtils;
import com.mall.dubbo.api.SmsCouponHistoryApi;
import com.tanhua.model.domain.SmsCouponHistory;
import com.tanhua.model.vo.PageVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class CouponHistoryService {

    @DubboReference
    private SmsCouponHistoryApi smsCouponHistoryApi;


    public PageVo couponHistoryList(Long couponId, String orderSn, Integer useStatus, Page<SmsCouponHistory> page) {
        Page resultPage =smsCouponHistoryApi.couponHistoryList(couponId,orderSn,useStatus,page);
        return PageUtils.getPageVo(resultPage);
    }
}
